#include <iostream>
#include <algorithm>

#include <cmath>
using namespace std;

int main()
{
	int n = 0;
	double d = 0;
	cin >> n >> d;

	double a = d * pow(2, n);
	cout << round(a) << endl;

	return 0;
}